package ai.agents.braitenberg;

import java.util.ArrayList;

import ai.application.Environment;
import ai.lights.Lightable;
import ai.spatial.Vector;

public class LightLovingBraitenbergAgent extends BraitenbergAgent{

	public LightLovingBraitenbergAgent(Vector desiredVelocity,
			Vector currentVelocity) {
		super(desiredVelocity, currentVelocity);
	}

	@Override
	public void update(Environment environment, ArrayList<Lightable> lights) {
		this.desiredVelocity = this.calculateDesiredLightVelocity(lights);
		this.desiredVelocity = this.desiredVelocity.add(this.getBorderForces(environment));
	}
}
